﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using WebApplication1.Servicve;

namespace WebApplication1.Controllers
{
    public class HomeController : Controller
    {
     //   private IConvertFileFactory _convertFileFactory;
        private IAnimal tiger1;
        public HomeController(IAnimal tiger)//, IConvertFileFactory convertFileFactory
        {
            tiger1 = tiger;
         //   _convertFileFactory=convertFileFactory;

        }
        public ActionResult Index()
        {
            Data data = new Data();
            data.Name = "张三啦";
          //  _convertFileFactory.ConvertFileContext.data = data;
            tiger1.Show("123");

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
  
}